package cn.wolfcode.crm.service.impl;

import cn.wolfcode.crm.domain.Position;
import cn.wolfcode.crm.mapper.PositionMapper;
import cn.wolfcode.crm.service.IPositionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PositionServiceImpl implements IPositionService {
    @Autowired
    private PositionMapper mapper;

    public void deleteByPrimaryKey(Long id) {
        mapper.deleteByPrimaryKey(id);
    }

    public void insert(Position record) {
        mapper.insert(record);

    }

    public Position selectByPrimaryKey(Long id) {
        return mapper.selectByPrimaryKey(id);
    }

    public List<Position> selectAll() {
        return mapper.selectAll();
    }

    public void updateByPrimaryKey(Position record) {
        mapper.updateByPrimaryKey(record);
    }

}
